{% extends 'base/base.html' %}
{% block title %}
<title>用户登录</title>
{% endblock %}
{% block top %}
{% endblock %}

{% block container %}
    <div class="row">
    {% for cat, msg in get_flashed_messages(with_categories=True) %}
      <div class="alert alert-{{ cat }} alert-dismissible" role="alert" id="hidden_view">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span></button>
        <strong>{{ msg }}</strong>
      </div>
      {% endfor %}
        <div class="col-md-4 col-md-offset-4" style="margin-top: 150px">
            <h3 style="text-align: center">广告投放后台管理系统</h3>
           <form method="post" action="{{ url_for('vipadmin.login') }}">
                {{ form.csrf_token }}
              <div class="form-group">
                <input class="form-control" id="username" name="username" placeholder="请输入账号..." type="text">
              </div>
              <div class="form-group">
                <input class="form-control" id="password" name="password" placeholder="请输入密码..." type="password">
              </div>
               <div class="col-sm-13">
                  <button type="submit" class="btn btn-primary btn-block">登录</button>
               </div>
            </form>
        </div>
    </div>

{% endblock %}